A resistor is an electrical component that resists the flow of electrical current, used to regulate voltage levels and control the amount of current flowing in a circuit.